<?php
/**
 * 
 */
class Arr 
{
	public function quchong($arr){
		$temp = [];

		foreach ($arr as $v) {

			if(!in_array($v,$temp)){
				$temp[]= $v;
			}
		}

		return $temp;

	}
	public function max_min_diff($arr){

		$max = $arr[0];
		$min = $arr[0];

		foreach ($arr as  $v) {
			if($v>$max){
				$max = $v;
			}

			if($v<$min){
				$min =$v;
			}
		}
		return $max-$min;
	}
	public function get_sum($arr){
		$sum = 0;
		foreach ($arr as $k => $v) {
			
			foreach ($v as $kk => $vv) {
				$sum +=$vv;
			}
		}
		return $sum;
	}

}



$obj = new Arr();

$res = $obj->quchong([325,234,23,4,2,3,3,3,3]);

var_dump($res);
